/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/idenger">idenger</a> All rights reserved.
 */
package com.idenger.modules.edu.dao.enroll;

import java.util.List;

import com.idenger.modules.edu.entity.enroll.EduEnroll;
import com.idenger.common.persistence.CrudDao;
import com.idenger.common.persistence.annotation.MyBatisDao;

/**
 * 报名记录DAO接口
 * @author 兰正军
 * @version 2017-12-12
 */
@MyBatisDao
public interface EduEnrollDao extends CrudDao<EduEnroll> {
	
	void saveList(List<EduEnroll> list);
	
//	List<EduEnroll> GruopByForProjectId(EduEnroll eduEnroll);
	
	List<EduEnroll> findUserListForCourseId(EduEnroll eduEnroll);
	
	List<EduEnroll> findUserListForProjectId(EduEnroll eduEnroll);
	
	List<EduEnroll> findListForOrderId(String orderId);
	
//	List<EduEnroll> listByForCourseIdAndOrderId(EduEnroll eduEnroll);
	
//	List<EduEnroll> GruopByForProjectIdAndOrderId(EduEnroll eduEnroll);
	
	EduEnroll findwhethPayCourse(String courseId,String userId);
	
	EduEnroll getEduEnrollByUserIdAndCourseId(EduEnroll eduEnroll);
	
	List<EduEnroll> findwhethPayProject(String projectId,String userId);
	
	void updateEnrollForUserId(String updUserId,String userId);
	
	EduEnroll findEnrollByUserIdAndCourseId(String courseId,String userId);
	
	List<EduEnroll> findEnrollByUserIdAndProjectId(String projectId,String userId);
}